import 'package:flutter/material.dart';
import 'package:myapp/util/colors_utils.dart';

class DiscoveryPage extends StatefulWidget {
  const DiscoveryPage({Key key}) : super(key: key);

  @override
  _DiscoveryPageState createState() => _DiscoveryPageState();
}

class _DiscoveryPageState extends State<DiscoveryPage>
    with AutomaticKeepAliveClientMixin {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
      title: Row(
        children: [
          Expanded(
              child: Center(
                  child: Text("发现",
                      style: TextStyle(
                        color: ColorUtils.color_text_1,
                        fontSize: 15,
                      )))),
          IconButton(
            onPressed: () {},
            icon: Icon(
              Icons.search,
              color: ColorUtils.color_text_1,
            ),
            iconSize: 20,
          )
        ],
      ),
    ));
  }

  @override
  bool get wantKeepAlive => true;
}
